<template>
  <div>
    <h2>子组件</h2>
    <slot :info="info" :mgs="mgs"></slot>
  </div>
</template>

<script>
export default {
  name: 'MyCmp',
  data() {
    return {
      info: {
        name: '张三',
        age: 18
      },
      mgs: '今天天气真好'
    }
  }
}
</script>

<style>

</style>